package com.easylinkin.sm.repository;

import java.util.Collection;
import java.util.List;
import java.util.Set;
import org.springframework.stereotype.Repository;

import com.easylinkin.sm.entity.Privilege;

import site.morn.boot.data.jpa.JpaRepository;

/**
 * 权限数据访问
 *
 * @author wujie
 * @since 0.1.1,  2019/08/28
 */
@Repository
public interface PrivilegeRepository extends JpaRepository<Privilege, Long> {

  Set<Privilege> findByIdIn(Collection ids);

  List<Privilege> findAllByParentId(Long parentId);
}
